package com.feng.dao;

import com.feng.entity.OrderItem;
import com.feng.util.db.DBHelp;

public class OrderItemDao {
	DBHelp<OrderItem> db = new DBHelp<OrderItem>();
	public  void save(OrderItem oi) {
		String sql = "insert into t_orderitem (id,bookname,bookprice,num,totle,orderid,bookid) values(?,?,?,?,?,?,?)";
		db.executeSQL(sql, oi.getId(),oi.getBookId(),oi.getBookprice(),oi.getNum(),oi.getTotle(),oi.getOrderId(),oi.getBookId());
	}

}
